home *** CD-ROM | disk | FTP | other *** search
/ Exame Informatica 139 / Exame Informatica 139.iso / Revista / Flash / Blog Final / blog.swf / scripts / DefineSprite_246 / frame_1 / DoAction.as
Encoding:
Text File  |  2006-11-19  |  843 b   |  42 lines

  1. nome_txt.border = true;
  2. nome_txt.borderColor = 10066329;
  3. comentario_txt.border = true;
  4. comentario_txt.borderColor = 10066329;
  5. var botao = false;
  6. inserir_mc.onRollOver = function()
  7. {
  8.    botao = true;
  9. };
  10. inserir_mc.onRollOut = function()
  11. {
  12.    botao = false;
  13. };
  14. inserir_mc.onReleaseOutside = function()
  15. {
  16.    botao = false;
  17. };
  18. inserir_mc.onRelease = function()
  19. {
  20.    var _loc4_ = new LoadVars();
  21.    _loc4_.onLoad = function()
  22.    {
  23.       _root.gotoAndPlay(1);
  24.    };
  25.    var _loc3_ = new LoadVars();
  26.    _loc3_.nome = nome_txt.text;
  27.    _loc3_.comentario = comentario_txt.text;
  28.    _loc3_.idPosts = _global.id;
  29.    _loc3_.sendAndLoad("inserirComentario.php",_loc4_,"POST");
  30. };
  31. this.onEnterFrame = function()
  32. {
  33.    if(botao)
  34.    {
  35.       inserir_mc.nextFrame();
  36.    }
  37.    else
  38.    {
  39.       inserir_mc.prevFrame();
  40.    }
  41. };
  42.